<template>
	<view class="parkmon-total">
		<view v-if="isSubmit && isEmpty && readValue === true" @click="handleSubmit" class="buttom-primary-style submit-button">确认提交</view>
		<view v-else class="buttom-secondary-style submit-button">确认提交</view>
	</view>
</template>
<script>
	export default {
		props: {
			isSubmit: {
				type: Boolean,
				default: false
			},
			readValue: {
				type: Boolean,
				default: false
			},
			monthData: {
				type: Object,
				default () {
					return {
						month: '一个月',
						start: '-',
						end: '-'
					}
				}
			}
		},
		components: {
			
		},
		computed: {
			isEmpty () {
				const { start } = this.monthData
				return start !== '-'
			}
			
		},
		data() {
			return {}
		},
		methods: {
			handleSubmit() {
				this.$emit('handleSubmit')
			},
		},
	}
</script>
<style lang='scss' scoped>
	.submit-button{
		height: 86rpx;
	}
</style>